package cn.wen.yinxiu.member.server.protocol.msg;

import cn.wen.yinxiu.member.server.protocol.Command;
import cn.wen.yinxiu.member.server.protocol.Packet;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName: MsgRequest
 * @Author: 小飞
 * @Date: 2023/5/28 14:41
 * @Description: 发送消息请求
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MsgRequest extends Packet {

    /**
     * 用户ID[个人]
     */
    private Long userId;
    /**
     * 好友ID[对方]
     */
    private Long friendId;
    /**
     * 传输消息内容
     */
    private String msgText;
    /**
     *  消息类型；0文字消息、1固定表情
     */
    private Integer msgType;
    /**
     * 消息时间
     */
    private Date msgTime;

    @Override
    public Byte getCommand() {
        return Command.MsgRequest;
    }

}
